<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{Title} (List) </title>
<link rel="stylesheet" href="../../css/mem_main.css" type="text/css">
<script language="JavaScript" src="/inc/admin_envirset.js"></script>
<script language="JavaScript">
<!--
strRowClassName = "clef";

function Edit(intID){
	with(document.EditForm){
		ID.value = intID;
		submit();
	}
}
function Page(intPage){
	with(document.ListForm){
		Page.value = intPage;
		submit();
	}
}
function ChangePage(){
	with(document.ListForm){
		Page.value = document.PageJump.pageview.value;
		submit();
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="770" border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{Title}:
      -- {Order}: 
      <select name="OrderField" class="zabutton" onchange="document.ListsForm.OrderField.value=this.value;document.ListsForm.submit();">
		<option value="0" {OrderField0}>{ID}</option>
        <option value="1" {OrderField1}>{HostName}</option>
      </select>
      <select name="OrderBy" class="zabutton" onchange="document.ListsForm.OrderBy.value=this.value;document.ListsForm.submit();">
        <option value="0" {OrderBy0}>{OrderASC}</option>
        <option value="1" {OrderBy1}>{OrderDESC}</option>
      </select>
      -- {Bet_Sum}: 
      <select onChange="Page(this.value)">
        {PageSelectOpion}
      </select>
      /{intTotalPage}{Bet_Page} -- 
      <input type="button" value="{Add}" class="zabutton" onClick="location.href='index.php?op=Add'">
      <input type="button" value="{List}" class="zabutton" onClick="location.href='index.php?op=Lists'">
      <input type="button" value="{Search}" class="zabutton" onClick="location.href='index.php?op=Search'">
    </td>
  </tr>
</table>

<div class="ctabdv"> 
  <table width="500" border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="ctiga"> 
	  <td width="60">{ID}</td>
      <td width="100">{HostName}</td>
      <td width="120">{Director}</td>
      <td width="120">{Memo}</td>
      <td>{Setup}</td>
    </tr>
<!-- @ Content Start @ //-->
    <tr class="clef"> 
      <td align="center">{ShowID}</td>
      <td>{ShowHostName}</td>
      <td>{ShowDirector}</td>
	  <td>{ShowMemo}</td>
      <td><a href="JavaScript:Edit({ShowID})">{Change}</a></td>
    </tr>
<!-- @ Content End @ //-->
    <tr class="cmto"> 
      <td colspan="5">{Sum} {intTotal} {No}</td>
    </tr>
  </table>
</div>

<form method="Get" Action="index.php" name="EditForm">
	<input type="hidden" name="op" value="Edit">
	<input type="hidden" name="ID" value="">
	<input type="hidden" name="Page" value="{intPageNow}">
</form>

<form method="Get" Action="index.php" name="ListForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="totalpage" value="{intTotalPage}">
	<input type="hidden" name="Page" value="{intPageNow}">
	<input type="hidden" name="OrderField" value="{OrderField}">
	<input type="hidden" name="OrderBy" value="{OrderBy}">
</form>

<form method="Get" Action="index.php" name="ListsForm">
	<input type="hidden" name="op" value="Lists">
	<input type="hidden" name="OrderField" value="{OrderField}">
	<input type="hidden" name="OrderBy" value="{OrderBy}">
</form>
</body>
</html>
